package edu.neusoft.springhtmldemo.controller;

import edu.neusoft.springhtmldemo.domain.RobotWorking;
import edu.neusoft.springhtmldemo.service.RobotWorkingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class RobotWorkingController {
    @Autowired
    private RobotWorkingService service;

    @RequestMapping("robotWorking")
    public RobotWorking robotWorkingShowNow(){
        RobotWorking working=service.showNow();
//        System.out.println(working);
        return working;
    }


}
